#ifndef PCX_H
#define PCX_H

extern char manufacturer;
extern char version;
extern char encoding;
extern char bits_per_pixel;
extern short xmin;
extern short ymin;
extern short xmax;
extern short ymax;
extern short hres;
extern short vres;
extern char palette[48];
extern char reserved;
extern char color_planes;
extern short int bytes_per_line;
extern short int palette_type;
extern char filler[58];

extern unsigned short width;
extern unsigned short depth;
extern unsigned short bytes;
extern unsigned short i;
extern unsigned char c;
extern unsigned char run;
extern unsigned char ss;
extern unsigned int vidoffset;
//extern unsigned int n;
extern FILE* pcxf;

extern void ReadPCXLine(unsigned char* dest); 
extern void LoadPCXHeader(char* fname);
extern void LoadPCXHeaderNP(char* fname);
extern void loadpcx(char* fname, unsigned char* dest);
extern void WritePCXLine(unsigned char* p);
extern void WritePalette();
extern void ScreenShot();

#endif
